﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DB
{
    abstract class DatabaseConnection
    {
        private string ConnectionString { get; set; }
        private TimeSpan timeOut { get; set; }

        public DatabaseConnection(string connectionString)
        {
            if (String.IsNullOrEmpty(connectionString))
            {
                throw new ArgumentException("String is null or empty");
            }
            else
            {
                connectionString = ConnectionString;
            }
        }

        public abstract void OpenConnection();
        public abstract void CloseConnection();
    }
}
